package com.vinfai.patterns.strategy;

public class Context {

	public Discount discount ;

	public Context(Discount discount){
		this.discount = discount;
	}
	
	public void changeDiscount(Discount discount){
		this.discount = discount;
	}
	
	public double getPrice(double price){
		return price*discount.getDiscount();
	}
}
